﻿<%@ Page Title="" Language="C#" MasterPageFile="~/presentation/MasterPage.Master" AutoEventWireup="true" CodeBehind="PokojDetailForm.aspx.cs" Inherits="ISHotel.presentation.PokojDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Label ID="LabelCisloPokoje" runat="server"></asp:Label><br />

<div>
<asp:GridView ID="GridViewPokoj" runat="server" AutoGenerateColumns="False" DataSourceID="ODS_Pokoj"
            AllowPaging="True" DataKeyNames="id_pobytu">        
            <Columns>       
            <asp:hyperlinkfield headertext="Číslo pobytu"
            datatextfield="id_pobytu"
            datanavigateurlformatstring="PobytDetail.aspx?id_pobytu={0}"
            datanavigateurlfields="id_pobytu" />
                                
                <asp:BoundField DataField="prijezd" HeaderText="Příjezd" SortExpression="prijezd"
                    DataFormatString="{0:dd.MM.yyyy}" HtmlEncode="False" HtmlEncodeFormatString="False"
                    ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="odjezd" HeaderText="Odjezd" SortExpression="odjezd" DataFormatString="{0:dd.MM.yyyy}"
                    HtmlEncode="False" HtmlEncodeFormatString="False" ItemStyle-HorizontalAlign="Center" />                
            </Columns>
        </asp:GridView>
        </div>
        <asp:ObjectDataSource ID="ODS_Pokoj" runat="server" SelectMethod="SelectPokojHistory" TypeName="ISHotel.Database.PobytTable">            
        </asp:ObjectDataSource>
</asp:Content>
